import java.awt.Point;


public class Test implements Cloneable {

	public static void main(String [] args) throws CloneNotSupportedException
	{
		CopiedClass d;
		CopiedClass c=new CopiedClass();
		
		d=c.clone();
		System.out.println(d.getPoint().toString());
		c.setPoint(new Point(1,1));
		System.out.println(d.getPoint().toString());
		
		
	}
	private String name;
	private Point point=new Point(5,6);
	public void setName(String name)
	{
		this.name=name;
	}
	public String getName()
	{
		return name;
	}
	public void setPoint(Point p)
	{
		this.point=p;
	}
	
	public Point getPoint()
	{
		return this.point;
	}
	protected Test clone() throws CloneNotSupportedException {
        return (Test) super.clone();
}
}
